package com.dgut.coal.dao;

import com.dgut.coal.entity.Info;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 11:20 2019/9/29
 * @Modifued BY:
 */
@Repository
public interface InfoDao {

    List<Info> infolist(@Param("notify_id") Integer notify_id, @Param("title") String title, @Param("state") Integer state);

    int deleteInfo(@Param("notify_id") Integer id);

    int deleteMany(int[] ints);

    int temp(@Param("create_user") String create_user, @Param("create_date") String create_date, @Param("title") String title, @Param("content") String content, @Param("state") int state);

    Info ainfo(@Param("notify_id") Integer notify_id);

    int edit(@Param("title") String title, @Param("content") String content, @Param("edit_date") String edit_date, @Param("notify_id") Integer notify_id);

    int save(@Param("create_user") String create_user, @Param("create_date") String create_date, @Param("title") String title, @Param("content") String content, @Param("state") int state);

    int release(@Param("notify_id") Integer notify_id);

    int updatesave(@Param("title") String title, @Param("content") String content, @Param("edit_date") String edit_date, @Param("state") Integer state, @Param("notify_id") Integer notify_id);


    List<Info> auditInfo(@Param("notify_id") Integer notify_id, @Param("title") String title);

    int pass(@Param("notify_id") Integer notify_id, @Param("audit_user") String audit_user, @Param("audit_date") String audit_date);

    int reject(@Param("notify_id") Integer notify_id, @Param("audit_user") String audit_user, @Param("audit_date") String audit_date);

    int count();

    int auditCount();

    List<Info> lastest();

    Info lastestOne();
}
